<?php
define( "WB_AKEY" , '4229079448');
define( "WB_SKEY" , 'bc58f8c7179369d4bfa914656c161b15' );
/** 
 * 62进制转为10进制 
 * 
 * @param integer $n 62进制 
 * @return string 10进制 
 */ 
function dec10($s) {  
    $base = 62;  
    $index = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';  
    $ret = 0;  
    $len = strlen($s) - 1;  
    for($t = 0; $t <= $len; $t ++) {  
        $ret += strpos($index, substr($s, $t, 1)) * pow($base, $len - $t);  
    }  
    return $ret;
}
?>